package com.mall.mina.config;

import org.apache.mina.core.session.IoSession;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 存储会话
 */
public class SessionUtil {
    /**
     * 使用map进行存储在线的session
     **/
    public static final Map<String, IoSession> ONLINE_SESSION = new ConcurrentHashMap<>();

    /**
     * 使用map进行存储在线的网控器设备
     **/
    public static final Map<String, String> ONLINE_DEVICE = new ConcurrentHashMap<>();
}
